package com.jt.service;

import com.jt.anno.Cache;
import org.springframework.stereotype.Service;

/**
 * @outhor fufeixiang
 * @date 2021-04-26
 */
@Service
public class DeptServiceImpl implements DeptService{
    @Cache
    @Override
    public void addDept() {
        System.out.println("添加部门信息");
    }

    @Override
    public void updateDept() {
        System.out.println("修改部门信息");
    }
    @Cache
    @Override
    public String aft(Integer id) {
        System.out.println("aft真滑溜");
        return "真棒棒";
    }
    @Cache
    @Override
    public void afterThrowing() {
        System.out.println("我是目标方法");
        int num = 1/0;
    }

    @Override
    @Cache
    public void around() {
        System.out.println("实现用户数据的入库操作");
    }
}
